package day11;

public class 队列测试 {
    public static void main(String[] args) throws Exception {
        SqQueue<String> sq = new SqQueue<>(10);
        sq.offer("a");
        sq.offer("b");
        sq.offer("c");
        sq.offer("d");
        System.out.println("队列元素个数：" + sq.length());
        System.out.println("队列详细信息：");
        sq.display();
        String s1;
        s1 = sq.poll();
        System.out.println("\n第一个出队列的元素是：" + s1);
        System.out.println("队列元素个数：" + sq.length());
        System.out.println("第一个元素出列后，队列详细信息：");
        sq.display();
    }
}
